package trafficgeneratorcr.algo;

public abstract class InterpolationAlgorithm {

    protected double[] knownPoints;
    protected double[] interpolatedPoints;
    protected int wantedPointCount;

    public InterpolationAlgorithm(double[] knownPoints, int wantedPointCount) {
        this.knownPoints = knownPoints;
        this.wantedPointCount = wantedPointCount;
        this.interpolatedPoints = new double[wantedPointCount];
    }

    public double[] getInterpolatedPoints() {
        return this.interpolatedPoints;
    }

    public abstract void execute();

}
